trace (tensor)